﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace DelegatesTest
{
    class Program
    {
        static void Main(string[] args)
        {
            ThreadedButton b = new ThreadedButton();
            Console.WriteLine("Main");

            //var re = new ReturnTrue<int>((i) => true); // works fine without the X. 
            //DoSomething(re);
        }

        public delegate bool ReturnTrue<T>(T item);

        public static void DoSomething(ReturnTrue<int> ret)
        { 
        }
    }

    class X
    {
        public delegate bool ReturnTrue<T>(T item);
    }
}
